package com.ld.security.server.user.modules.dsp.entity;

import com.ld.security.common.mybatis.anno.LabelKey;
import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.base.entity.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;


import com.ld.security.server.user.modules.ups.entity.UpsUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.*;
import com.ld.security.common.mybatis.constant.SqlCondition;

@TableName("dsp_log")
@ApiModel("广告日志")
@Data
public class DspLogEntity  extends SuperEntity implements LabelMap
{






@LabelKeys(value = DspAdvertEntity.class,
labels = @LabelKey(sourceKey = "label",targetKey = "advertName")
)
  @ApiModelProperty("广告编号")
  @SqlKey(SqlCondition.eq)
  private String advertId;



  @ApiModelProperty("日志类型")
  @SqlKey(SqlCondition.eq)
  private String logType;



  @LabelKeys(value = DspSpaceEntity.class,
          labels = {
          @LabelKey(targetKey = "spaceName",sourceKey = "label")
  }
  )
  @ApiModelProperty("广告位编号")
  @SqlKey(SqlCondition.eq)
  private String spaceId;



  @LabelKeys(value = UpsUserEntity.class,
          labels = {
                  @LabelKey(targetKey = "upsUserName",sourceKey = "label")
          }
  )
  @ApiModelProperty("画像编号")
  @SqlKey(SqlCondition.eq)
  private String upsUserId;

  private String advertName;

  private String spaceName;

  private String upsUserName;


  private MapJson labelMap;

        }
